package com.system.part.service;

import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.query.Param;

import com.system.employee.entity.Employee;
import com.system.part.entity.Part;

public interface IPartService{
	public void saveOrUpdate(Part part);
	public void delete(Part part);
	public void delete(List<Long> ids);
	public Part findOne(Long partId);
	public List<Part> findAll();
	//动态条件查询
	public Page<Part> findAll(Specification<Part> spec, Pageable pageable);
	
	public List<Employee> findEmployee(Long partId);
}
